<?xml version="1.0" encoding="UTF-8"?>

<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
                             http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" version="3.1">
    <display-name>Hello World</display-name>

    <!--
    <servlet>
        <servlet-name>mywebserver</servlet-name>
        <servlet-class>org.academiadecodigo.enuminatti.helloworld.HelloWorld</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>mywebserver</servlet-name>
        <url-pattern>/login</url-pattern>
    </servlet-mapping>
    -->
    <servlet>
        <servlet-name>login</servlet-name>
        <servlet-class>org.academiadecodigo.enuminatti.helloworld.controllers.LoginController</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>login</servlet-name>
        <url-pattern></url-pattern>
    </servlet-mapping>

    <servlet>
        <servlet-name>bootcamplist</servlet-name>
        <servlet-class>org.academiadecodigo.enuminatti.helloworld.controllers.BootcampListController</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>bootcamplist</servlet-name>
        <url-pattern>/bootcamps</url-pattern>
    </servlet-mapping>

    <servlet>
        <servlet-name>userlist</servlet-name>
        <servlet-class>org.academiadecodigo.enuminatti.helloworld.controllers.UserListController</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>userlist</servlet-name>
        <url-pattern>/users</url-pattern>
    </servlet-mapping>
<!--

    <error-page>
        <error-code>400</error-code>
        <location>/WEB-INF/400.jsp</location>
    </error-page>

    <error-page>
        <error-code>500</error-code>
        <location>/WEB-INF/500.jsp</location>
    </error-page>
-->

    <listener>
        <listener-class>org.academiadecodigo.enuminatti.helloworld.Main</listener-class>
    </listener>
</web-app>
